{include file="public_head" /}
<!-- freight -->
<link href="__STATIC__/css/freight.css" rel="stylesheet">

<body class="nav-md">

<div class="container body">

    <div class="main_container">

        {include file="public_sidebar,public_nav" /}
        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">

                <div class="page-title">
                    <div class="title_left">
                        <h3>运费模板管理</h3>
                    </div>
                </div>
                <div class="clearfix"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>{$mate_title}
                                    <!--<small>different form elements</small>-->
                                </h2>
                                <ul class="nav navbar-right panel_toolbox">
                                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                    </li>
                                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                                    </li>
                                </ul>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <br/>
                                <form class="form-horizontal form-label-left" enctype="multipart/form-data" action="" method="post" id="registerForm">

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">关联地区：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <div id="dialog_areas" class="dialog-areas">
                                                <div class="ks-contentbox">
                                                        <ul id="J_CityList">
                                                            <li>
                                                                <dl class="ncsc-region">
                                                                    <dd class="ncsc-province-list">

                                                                        {volist name='area' id='provinceList'}
                                                                        <div class="ncsc-province">
                                                                            <span class="ncsc-province-tab">
                                                                              <input style="margin-top: -3px;" type="checkbox"
                                                                                     name="area_id[]" class="J_Province"
                                                                                     id="J_Province_{$provinceList.area_id}"
                                                                                     value="{$provinceList.area_id}"
                                                                                     {in name="$provinceList.area_id" value="$data"}
                                                                                     disabled
                                                                                     {/in}
                                                                                     {in name="$provinceList.area_id" value="$item.area_id|default=''"}
                                                                                     checked
                                                                                     {/in}
                                                                              >
                                                                              <label for="J_Province_{$provinceList.area_id}">{$provinceList.area_name}</label>
                                                                                                                                                                                                                                        {in name="$provinceList.area_id" value="$item.area_id|default=''"}
                                                                                    <span class="check_num">({:count($provinceList.city)})</span>
                                                                                {else/}
                                                                                    <span class="check_num"></span>
                                                                                {/in}

                                                                              <img src="__STATIC__/images/sort_desc.png"
                                                                                 class="trigger"
                                                                                 style="margin-left: 2px;cursor:pointer">
                                                                                <div class="ncsc-citys-sub">

                                                                                {volist name='provinceList["city"]' id='cityList'}
                                                                                  <span class="areas">
                                                                                  <input type="checkbox" name="area_id[]"
                                                                                         class="J_City" id="J_City_{$cityList.area_id}"
                                                                                         value="{$cityList.area_id}"
                                                                                         {in name="$cityList.area_id" value="$data"}
                                                                                         disabled
                                                                                         {/in}
                                                                                         {in name="$cityList.area_id" value="$item.area_id|default=''"}
                                                                                         checked
                                                                                         {/in}
                                                                                  >
                                                                                  <label for="J_City_{$cityList.area_id}" style="margin-top: 10px">{$cityList.area_name}</label>
                                                                                  </span>
                                                                                {/volist}
                                                                                  <p style="margin: 12px;float: right"><a href="javascript:void(0);" class="ncsc-btn-mini ncsc-btn-orange close_button">关闭</a></p>
                                                                                </div>

                                                                              </span>
                                                                        </div>
                                                                        {/volist}
                                                                    </dd>
                                                                </dl>
                                                            </li>
                                                        </ul>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="divider-dashed"></div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">模板区域名称：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入模板区域名称"
                                                   class="form-control col-md-7 col-xs-12" name="title"
                                                   value="{$item.title|default=''}"
                                                   datatype="*"
                                                   nullmsg="请输入模板区域名称！" errormsg="请输入模板区域名称！"
                                            >
                                        </div>
                                    </div>

                                    <div class="divider-dashed"></div>

                                    <div class="form-group">
                                        <label class="control-label col-md-3 col-sm-3 col-xs-12">单件价格：</label>
                                        <div class="col-md-6 col-sm-6 col-xs-12">
                                            <input type="text" placeholder="请输入单件价格"
                                                   class="form-control col-md-7 col-xs-12" name="price"
                                                   value="{$item.price|default=''}"
                                                   datatype="*"
                                                   nullmsg="请输入单件价格！" errormsg="请输入单件价格！"
                                            >
                                        </div>
                                    </div>

                                    <!--<div class="divider-dashed"></div>-->

                                    <!--<div class="form-group">-->
                                        <!--<label class="control-label col-md-3 col-sm-3 col-xs-12">续件价格：</label>-->
                                        <!--<div class="col-md-6 col-sm-6 col-xs-12">-->
                                            <!--<input type="text" placeholder="请输入续件价格"-->
                                                   <!--class="form-control col-md-7 col-xs-12" name="renew_price"-->
                                                   <!--value="{$item.renew_price|default=''}"-->
                                                   <!--datatype="*"-->
                                                   <!--nullmsg="请输入续件价格！" errormsg="请输入续件价格！"-->
                                            <!--&gt;-->
                                        <!--</div>-->
                                    </div>
                                    <div class="ln_solid"></div>

                                    <div class="form-group">
                                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                                            {present name="$item.id"}
                                            <input type="hidden" name="id" value="{$item.id}">
                                            {/present}
                                            <input type="hidden" name="member_id" value="{$Think.session.shop_id}">
                                            <button type="submit" class="btn btn-primary">提交</button>
                                            <a type="reset" class="btn btn-success" onclick="history.go(-1)">返回</a>
                                        </div>
                                    </div>

                                </form>
                            </div>
                        </div>
                    </div>
                </div>


            </div>
            <!-- /page content -->

        </div>

    </div>
</div>

{include file="public_foot" /}

<!-- validform -->
<script src="__STATIC__/js/Validform_v5.3.2_min.js"></script>
<script src="__STATIC__/js/layer.js"></script>
<!-- transport -->
<script src="__STATIC__/js/freight.js"></script>
<script src="__STATIC__/js/transport.js"></script>
<script>
    //validform
    $(function () {

        $.Tipmsg.r = null;

        var showmsg = function (msg) {
            //假定你的信息提示方法为showmsg， 在方法里可以接收参数msg，当然也可以接收到o及cssctl;
            alert(msg);
        }
        $("#registerForm").Validform({
            tiptype: function (msg) {
                layer.msg(msg);
            },
            tipSweep: true
        });

    })
</script>
</body>

</html>
